package com.eber.demo.design.state.c;

public class OpeningState extends LiftStateAbstract{

    @Override
    public void close() {
        // 修改状态
        super.context.setLiftState(new ClosingState());
        super.context.getLiftState().close();
    }

    // 打开电梯门
    @Override
    public void open() {
        System.out.println("电梯门开启...");
    }

    @Override
    public void run() {
        // do nothing
    }

    @Override
    public void stop() {
        // do nothing
    }
}
